#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <Static.hpp>
#include <Timer.hpp>
#include <MainMenuScene.hpp>
#include <stack>
class Application{
    public:
        Application(const char* title,int x,int y,int w,int h,Uint32 flags);
        ~Application();
        int exec();
        void setFps(int fps);
        static bool init();
        static void quit();
        void showFps(bool value);
        
    private:
        SDL_Window* win;
        SDL_Renderer* renderer;
        std::stack<Scene*> scenes;
        bool exited{false};
        int msDelay=1000/60;
        bool isShowFps{false};
        void render(float delta);
        int update(float delta);
        void keyDown(SDL_KeyboardEvent &evt);
};